#include "process.h"

void my_process()
{
    int con = 0;
    char* ch = "/-|\\";
    char str[101];
    memset(str, 0, sizeof(str));

    //100次
    while(con <= 100)
    {
        printf("\033[41;33m[%-100s][%d%%][%c]\r\033[1m", str, con, ch[con % 4]);
        fflush(stdout);
        str[con++] = '-';//样式
        usleep(100000);
    }
    printf("\n");
}
